package com.uobgroup.ews.uam.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.beans.factory.annotation.Configurable;

@Entity
@Configurable
public class ApplicationConfiguration extends BaseEntity {

   @NotNull
   @Size(max = 74)
   private String name;

   @NotNull
   @Size(max = 74)
   private String propertyKey;

   @NotNull
   @Size(max = 74)
   private String propertyValue;

   private String description;

   public String getName() {
      return this.name;
   }

   public void setName(String name) {
      this.name = name;
   }

   public String getPropertyKey() {
      return this.propertyKey;
   }

   public void setPropertyKey(String propertyKey) {
      this.propertyKey = propertyKey;
   }

   public String getPropertyValue() {
      return this.propertyValue;
   }

   public void setPropertyValue(String propertyValue) {
      this.propertyValue = propertyValue;
   }

   public String getDescription() {
      return this.description;
   }

   public void setDescription(String description) {
      this.description = description;
   }

   @Id
   @GeneratedValue(strategy = GenerationType.AUTO)
   @Column(name = "id")
   private Long id;

   public Long getId() {
      return this.id;
   }

   public void setId(Long id) {
      this.id = id;
   }
}
